<div ng-controller="HuodongCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'报名活动'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/huodong/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right">
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'活动名称'|translate}}</th>
                <th>{{'报名时间'|translate}}</th>
                <th>{{'签到时间'|translate}}</th>
                <th>{{'报名费'|translate}}</th>
                <th>{{'报名费原价'|translate}}</th>
                <th>{{'参会人数'|translate}}</th>
                <th>{{'当前报名人数'|translate}}</th>
                <th>{{'报名次数'|translate}}</th>
                <th>{{'备注'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in huodong_list">
                <td>{{list.huodong_id}}</td>
                <td>{{list.name}}</td>
                <td>
                    开始时间:{{list.start_time | ddtt}}
                    <br> 结束时间:{{list.end_time | ddtt}}
                </td>
                <td>
                    开始时间：{{list.huodong_start_time | ddtt}}
                    <br> 结束时间：{{list.huodong_end_time | ddtt}}
                </td>
                <td>{{list.pay_amount}}</td>
                <td>{{list.original_price}}</td>
                <td>{{list.need_customer_num}}</td>
                <td>{{list.current_num}}</td>
                <td>{{list.limit_num}}</td>
                <td>{{list.remark}}</td>
                <td>
                    <span style="display: block;margin-bottom: 10px;">
                        <add-huo-dong huodong-id="{{list.huodong_id}}" btn-name="地址位置"></add-huo-dong>
                        <a href="#/huodong/add?huodong_id={{list.huodong_id}}" class="sui-btn btn-primary"> {{'edit'|translate}} </a>    
                    </span>
                    <span style="display: block;margin-bottom: 10px;">
                        <a href="#/huodong/detail?huodong_id={{list.huodong_id}}" class="sui-btn btn-success"> {{'报名详情'|translate}} </a>
                        <button id="signAdd" class="sui-btn btn-primary" ng-click="signAdd(list);">签到</button>
                    </span>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getList(pageNo)"></pager>

    <table class="sui-table table-bordered" ng-show="signHuoDongAry.length">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'活动名称'|translate}}</th>
                <th>{{'签到时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="hd in signHuoDongAry">
                <td>{{hd.huodong_id}}</td>
                <td>{{hd.name}}</td>
                <td>
                    开始时间：{{hd.huodong_start_time | ddtt}}
                    <br> 结束时间：{{hd.huodong_end_time | ddtt}}
                </td>
                <td ng-if="!$index" rowspan="{{signHuoDongAry.length}}">
                    <button id="signAdd" class="sui-btn btn-primary" ng-click="signAdd1();">签到</button>
                </td>
            </tr>
        </tbody>
    </table>
</div>